<!--  -->
<template>
  <div>
    <van-form @submit="onSubmit" ref="form">
      <area-select v-model="form.area"/>
      <clinic v-model="form.clinic"/>
      <!-- <div style="margin: 16px;">
        <van-button round block type="info" native-type="submit">提交</van-button>
      </div>-->
    </van-form>
  </div>
</template>

<script>
import AreaSelect from "@/components/area";
import Clinic from "@/components/clinic";

export default {
  components: { AreaSelect, Clinic },
  data() {
    return {
      form: {}
    };
  },
  //方法集合
  methods: {
    onSubmit() {},
    submit() {
      this.$refs.form.submit();
    },
    validate() {
      return this.$refs.form.validate();
    },
    reset() {
      this.form = {};
      this.$refs.form.resetValidation()
    }
  },
  created() {},
  //生命周期 - 挂载完成（可以访问DOM元素）
  mounted() {}
};
</script>
<style lang='scss' scoped>
</style>